﻿using System;

using System.Collections;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Global.Class.Library;
using BusinessLogicLayer;
using BusinessLogicLayer.MetaDataList;
using DataAccessLayer;
using DataTransferObject;
using DataTransferObject.MetaDataList;
using System.Globalization;
using BrightIdeasSoftware;
using Equin.ApplicationFramework;

namespace PresentationLayer
{
    public partial class TestAutoComplete : Form
    {
        public TestAutoComplete()
        {
            InitializeComponent();

        }

        private void TestAutoComplete_Load(object sender, EventArgs e)
        {
            CommonMetaList commonMetaList = new CommonMetaList();
            ERmgrUIP.ListAddressAreaDataTable listAddressAreaDataTable = commonMetaList.GetAddressArea();

            this.comboBox1.DataSource = listAddressAreaDataTable;
            this.comboBox1.DisplayMember = "AddressAreaID";
            this.comboBox1.ValueMember = "AddressAreaID";

            this.autoCompleteComboBox1.DataSource = listAddressAreaDataTable;
            this.autoCompleteComboBox1.DisplayMember = "Description";
            this.autoCompleteComboBox1.ValueMember = "AddressAreaID";
            
        }
    }
}
